<template>
	<view class="subscribeLayout pageBg">
		<view class="subscribeInfo">
			<view class="avatar">
				<image src="/static/logo.png" mode="aspectFill"></image>
			</view>
			<view class="version">当前版本：1.2.37</view>
		</view>

		<view class="section">
			<view class="list">
				<view class="row">
					<view class="left">
						<view class="text">功能介绍</view>
					</view>
					<view class="right">
						<uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
				</view>

				<view class="row">
					<view class="left">
						<view class="text">投诉</view>
					</view>
					<view class="right">
						<uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
				</view>

				<view class="row">
					<view class="left">
						<view class="text">版本更新</view>
						<view class="text-update">NEW</view>
					</view>
					<view class="right">
						<uni-icons type="right" size="15" color="#aaa"></uni-icons>
					</view>
				</view>
			</view>

		</view>

		<view class="underside">
			<view class="software">
				<navigator url="" class="link-color">
					《软件许可及服务协议》
				</navigator>
			</view>
			<view class="privacy">
				<navigator url="" class="link-color">
					《隐私保护指引摘要》
				</navigator>
				<navigator url="" class="link-color">
					《隐私保护指引》
				</navigator>
			</view>
			<view>
				客服电话：400 670 0700
			</view>
			<view>
				<text>
					ICP备案号:苏B2-20090059-1621A&gt;
				</text>
			</view>
			<view>
				算法备案信息&gt;
			</view>
			<view>
				智慧农业创新团队 版权所有
			</view>
			<view>
				Copyright © 2020-{{ currentYear }} JAAS.All Rights Reserved.
			</view>
		</view>


	</view>
</template>

<script setup>
	const currentYear = new Date().getFullYear();

</script>

<style lang="scss" scoped>
	.subscribeLayout {
		.subscribeInfo {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			padding: 50rpx 0;

			.avatar {
				width: 160rpx;
				height: 160rpx;
				border-radius: 10%;
				overflow: hidden;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.version {
				padding: 50rpx 0;
				font-size: 28rpx;
				// color: #aaa;
			}
		}

		.section {
			width: 690rpx;
			margin: 50rpx auto;
			border-top: 1px solid #eee;
			border-bottom: 1px solid #eee;
			border-left: none;
			border-right: none;

			.list {
				.row {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 0 30rpx;
					height: 100rpx;
					border-bottom: 1px solid #eee;
					position: relative;
					background: #fff;

					&:last-child {
						border-bottom: 0
					}

					.left {
						display: flex;
						align-items: center;

						:deep() {
							.uni-icons {
								color: $brand-theme-color !important;
							}
						}

						.text {
							padding-left: 20rpx;
							color: #666
						}

						.text-update {
							width: 80rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							background: red;
							border-radius: 15rpx;
							font-weight: 300;
							font-size: 28rpx;
							color: #fff;
							margin-left: 20rpx;
						}
					}

					.right {
						display: flex;
						align-items: center;

						.text {
							font-size: 28rpx;
							color: #aaa;

						}
					}


				}
			}
		}

		.underside {
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			padding: 20rpx 30rpx;
			/* ← 额外底部空间 */
			padding-bottom: 60rpx;
			font-size: 24rpx;
			color: #999;
			text-align: center;
			line-height: 40rpx;
			z-index: 999;

			.privacy {
				display: flex;
				align-items: center;
				justify-content: center;
				gap: 20rpx;
			}

			.link-color {
				color: #3c9cff;
			}

			.link-color:active {
				opacity: 0.6;
			}
		}
	}
</style>